<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Gestor Almacen</title>
<link rel="stylesheet" href="<c:url value="resources/css/style.css"/>"/>
<script src="<%=request.getContextPath() %>/resources/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
        var contexPath = "<%=request.getContextPath() %>";
</script>
<script src="<%=request.getContextPath() %>/resources/js/funciones.js"></script>
</head>
<body onload='refreshCarrito();'>
<div id="gestor">
	<%-- <h3>Message : ${message}</h3>	
	<h3>Username : ${username}</h3>	
	<h1>Persons</h1> --%>
	
	<div id="tactil">
		<%-- <table>
		<c:forEach items="${familias}" var="familia">
			
			<tr>
				<td><c:out value="${familia.cod_familia}" /></td>
				<td><a id="<c:out value="${familia.cod_familia}" />"  onclick="doAjaxPostGetAdelante(this.id)"><c:out value="${familia.nombre}"/></a></td>
			</tr>
		</c:forEach>
		</table> --%>
		<c:forEach items="${familias}" var="familia">
			<section class="block">
				<p class="titulo">${familia.nombre}</p>
					<a id="<c:out value="${familia.cod_familia}" />"  onclick="doAjaxPostGetAdelante(this.id)"><img alt="" src='resources/images/valvula.jpg'/></a>
			</section>
		</c:forEach>
	</div>
	<div id="carrito">
		<p class="atzera button"> 
			<input type="button" id="atzera" value="atzera" onclick="">
		</p>
		<p class="signin button"> 
			<input type="button" id="1" value="Limpiar" onclick="limpiarCarrito()">
		</p>
		<div id="carri">
		
		</div>
		<p class="signin button"> 
			<input type="button" value="Enviar" onclick="enviarCarrito()">
		</p>
		<p class="signin button"> 
			<input type="button" value="Logout" onclick="location.href='<c:url value="/j_spring_security_logout" />'">
		</p>
	</div>
</div>
 	
 <!-- 	<div id="info" class="success"></div>
 	
 	<input type="button" id="1" value="Limpiar" onclick="limpiarCarrito()">
 	<div id="carri"></div> -->
	<%-- <a href="<c:url value="/j_spring_security_logout" />" > Logout</a> --%>
</body>
</html>